Skip to content

Use flake8-simplify - #267

Merged
finswimmer merged 1 commit into
python-poetry:masterfrom
radoering:use-flake8-simplify
Jan 24, 2022
Merged

finswimmer merged 1 commit into
python-poetry:masterfrom
radoering:use-flake8-simplify

Conversation

@radoering

Copy link
Copy Markdown
Member

Relates-to: python-poetry/poetry#4776

flake8-simplify has already been introduced for poetry in python-poetry/poetry#4798

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug E 6 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 4 Security Hotspots
Code Smell A 671 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

@finswimmer finswimmer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful 👍

Comment thread .flake8
[flake8]
max-line-length = 88
ignore = E501, E203, W503, ANN101, ANN102
ignore = E501, E203, W503, ANN101, ANN102, SIM106

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that we ignore SIM106 in poetry as well. So I'm fine here. In many cases this warning helps to improve the code. But I've no idea how often it is not helpful in our cases. Maybe we should evaluate it some point later, and only ignore it case-by-case then.

@finswimmer
finswimmer merged commit 72fc3d5 into python-poetry:master Jan 24, 2022
bostonrwalker pushed a commit to bostonrwalker/poetry-core that referenced this pull request Aug 29, 2022
@radoering
radoering deleted the use-flake8-simplify branch November 24, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants